package demo01;

public class ZFBpay extends Pay{

    private double m=1500;

    @Override
    public void pay(double money) {
        if (m>=money){
            System.out.println("你消费的金额"+money);
            m = m-money;
            System.out.println("余额"+m);
        }
        else if (m<money){
            System.out.println("余额不足");
        }
    }
}
